/* eslint-disable import/no-anonymous-default-export */
export default {
    // 读
    getStorage(key) {

        let obj = JSON.parse(sessionStorage.getItem(key))

        return obj
    },
    // 存
    setStorage(key, value) {
        let valueStr = JSON.stringify(value)
        sessionStorage.setItem(key, valueStr)
    }
}